﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class orderService
    {
        #region getbyID
        public static orderInfo getbyID(string orderID) {
            return orderController.getbyID(orderID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return orderController.Listorder();
        }
        #endregion

        #region insert
        public static bool insertOrder(orderInfo objOrder) {
            return orderController.insertCatogory(objOrder);
        }
        #endregion

        #region update
        public static bool updateOrder(orderInfo objOrder) {
            return orderController.updateCatogory(objOrder);
        }
        #endregion

        #region delete
        public static bool deleteOrder(int orderID) {
            return orderController.deleteCatogory(orderID);
        }
        #endregion

        #region checkOrder
        public static bool checkOrder(int orderID) {
            return orderController.checkOrder(orderID);
        }
        #endregion
    }
}
